
#include "tab_set.h"

TabSet::TabSet()
{
  this->addTab(&this->galaxyPage, QIcon("../img/galaxy.png"), tr("Galaxy"));
  this->addTab(&this->systemPage, QIcon("../img/system.png"), tr("System"));
  this->planetPage.changeNbStar(100);
  this->addTab(&this->planetPage, QIcon("../img/planet.png"), tr("Planet"));
  
  this->addTab(&this->sciencePage, QIcon("../img/science.png"), tr("Science"));
  this->addTab(&this->diplomacyPage, QIcon("../img/diplomacy.png"), tr("Diplomacy"));
}

TabSet::~TabSet()
{
  
}

void		TabSet::setGameCorePtr(GameCore	*gameCore)
{
  this->gameCore = gameCore;
  this->galaxyPage.init(gameCore);
}

void		TabSet::galaxyZoomIn()
{
  this->galaxyPage.zoomIn();
}

void		TabSet::galaxyZoomOut()
{
  this->galaxyPage.zoomOut();
}

void		TabSet::galaxyRotateUp()
{
  this->galaxyPage.rotateUp();
}

void		TabSet::galaxyRotateDown()
{
  this->galaxyPage.rotateDown();
}

void		TabSet::galaxyRotateLeft()
{
  this->galaxyPage.rotateLeft();
}

void		TabSet::galaxyRotateRight()
{
  this->galaxyPage.rotateRight();
}

void		TabSet::galaxyResetView()
{
  this->galaxyPage.resetView();
}

void		TabSet::galaxyShowLinks(int state)
{
  this->galaxyPage.showLinks(state);
}
